@import url('@/assets/css/theme.css');

.city-add-container {
  padding: 20px;
  min-height: calc(100vh - 60px);
  position: relative;
  overflow: hidden;
  background: var(--background-color, linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%));
}

/* 容器背景渐变 */
.city-add-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(67, 56, 202, 0.05) 0%, rgba(219, 39, 119, 0.05) 100%);
  z-index: -1;
}

.city-add-container::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(45deg, rgba(64, 158, 255, 0.1), rgba(103, 194, 58, 0.1));
  z-index: -1;
}

.city-add-container::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: linear-gradient(45deg, rgba(230, 162, 60, 0.1), rgba(245, 108, 108, 0.1));
  z-index: -1;
}

.city-card {
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  animation: fadeInUp 0.6s ease-out;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.city-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(64, 158, 255, 0.1), rgba(103, 194, 58, 0.1));
  padding: 15px;
  margin: -15px -15px 15px -15px;
  font-weight: bold;
  color: var(--primary-color);
  border-bottom: 1px solid rgba(64, 158, 255, 0.2);
}

.back-to-home {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
}

.home-button {
  background: linear-gradient(135deg, var(--primary-color), #67C23A);
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(64, 158, 255, 0.3);
  transition: all 0.3s ease;
}

.home-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(64, 158, 255, 0.4);
}

.avatar-uploader {
  border: 1px dashed var(--el-border-color);
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--el-transition-duration-fast);
}

.avatar-uploader:hover {
  border-color: var(--el-color-primary);
}

.avatar-uploader-icon {
  font-size: 28px;
  color: #8c939d;
  width: 100px;
  height: 100px;
  text-align: center;
  line-height: 100px;
}

.avatar {
  width: 100px;
  height: 100px;
  display: block;
}

.el-button {
  transition: all 0.3s ease;
}

.el-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 添加浮动形状装饰 */
.floating-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  z-index: -1;
}

.shape-1 {
  top: 10%;
  left: 5%;
  width: 80px;
  height: 80px;
  background: linear-gradient(45deg, #409EFF, #67C23A);
  animation: float 6s ease-in-out infinite;
}

.shape-2 {
  top: 60%;
  right: 10%;
  width: 120px;
  height: 120px;
  background: linear-gradient(45deg, #E6A23C, #F56C6C);
  animation: float 8s ease-in-out infinite;
}

.shape-3 {
  bottom: 20%;
  left: 15%;
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, #909399, #7F4CE5);
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(10deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
